package com.jianyi.controller;

import com.jfinal.core.ActionKey;
import com.jfinal.kit.JsonKit;
import com.jianyi.base.BaseController;
import com.jianyi.model.Resource;

public class ResourceController extends BaseController{

	@ActionKey("/manage/resource")
	public void index(){
		
		String json=JsonKit.toJson(Resource.dao.getAllResourcesForTree());
		setAttr("vo", json);
		renderJsp("/manage/resource/resource-list.jsp");
	}
}
